package zl.service;

import com.github.pagehelper.PageInfo;
import zl.bean.User;

import java.sql.SQLException;
import java.util.List;

public interface UserService {

    int addUser(User user);

    int deleteUser(Integer id) throws SQLException;

    int updateUser(User user);

    List<User> selectAllUser();

    User selectById(Integer id);

    PageInfo<User> selectByPage(int currentPage, String keyword) throws SQLException;
}
